<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			#container{
				width: 100%;
				height: 500px;
				background-color: antiquewhite;
				display: flex;
				justify-content: center;
				align-items: center;
			}
			#outDiv{
				height: 100px;
				width: 600px;
				background-color: aqua;
				display: flex;
				align-items: center;
				overflow: hidden;
				border: blueviolet solid;
				
				
			}
			#imgdiv{
				height: 100px;
				width: 1000px;
				display: flex;
			}
			#imgdiv img{
				width: 100px;
				height: 100px;
			}
		</style>
	</head>
	<body>
		<div id="container">
			<div id="outDiv">
				<div id="imgdiv" onmouseenter="Enter()" onmouseleave="Leave()">
					<img src="img/lunbo/1.jpeg" >
					<img src="img/lunbo/2.jpeg" >
					<img src="img/lunbo/3.jpeg" >
					<img src="img/lunbo/4.jpeg" >
					<img src="img/lunbo/5.jpeg" >
					<img src="img/lunbo/6.jpeg" >
					<img src="img/lunbo/7.jpeg" >
					<img src="img/lunbo/8.jpeg" >
					<img src="img/lunbo/9.jpeg" >
					<img src="img/lunbo/10.jpeg" >
					<img src="img/lunbo/1.jpeg" >
					<img src="img/lunbo/2.jpeg" >
					<img src="img/lunbo/3.jpeg" >
					<img src="img/lunbo/4.jpeg" >
					<img src="img/lunbo/5.jpeg" >
					<img src="img/lunbo/6.jpeg" >
				</div>
			</div>
		
		</div>
	</body>
	<script type="text/javascript">
	var imgobj=document.getElementById('imgdiv');
	var marginLeft=0;
	
		var aaa =onload=function(){
		    myInterval=setInterval(Open,10)
		}
		
		function Open(){
				marginLeft--;
				imgobj.style.marginLeft=marginLeft+'px';
				if (marginLeft==-1000) {
					marginLeft=0;
				}
				
				if (marginLeft%100==0) {
					clearInterval(myInterval);
					setTimeout(function(){
						myInterval=setInterval(Open,10)
						},1000);
				}
		}
		function Enter(){
			clearInterval(myInterval);
		}
		function Leave(){
			    myInterval=setInterval(Open,10)
		}
	</script>
	
</html>
